import http from './http'

export const LoginApi = (params: LoginParams): RSP<string> => http.post('/1024/login', params)

// export const RegisterApi = (params: LoginParams): RSP<Object> => http.post('/1024/login', params)

export const homeDataApi = (): RSP<HomeDataModel> => http.get('/6666')

export const getQuestionTypeApi = (actionCode: string): RSP<QuetionTypeModel[]> => http.get(`/1314/${actionCode}/all`)

export const getQuestionListApi = (params: QuetionListParams): RSP<QuestionModel[]> => http.post('/1314', params)

export const submitAnswerAPi = (params: SubmitAnswerParams): RSP<any> => http.put('/1314', params)

export const getProjectsApi = (): RSP<ExemItem[]> => http.get('/6666/field')